/**
  ******************************************************************************
  * @author     Chris
  * @since      2024/6/25 10:55
  *
  * @file       pd_spi_io.c
  * @brief      SPI GPIO peripheral driver.
  *
  * @note       This file contains the peripheral driver for the SPI GPIO.
  *
  * @warning    None.
  ******************************************************************************
  * Change Logs:
  *   Date          Author       Notes
  *   2024/6/25     Chris        the first version
  *
  ******************************************************************************
  */


#include "pd_spi_io.h"

static struct SPIGPIO new(  GPIO *ssel, uint8_t sselSize,
                            GPIO *sclk,   GPIO *mosi,   GPIO *miso) {
    return (struct SPIGPIO) {
            .ssel = ssel,
            .sselSize = sselSize,

            .sclk = sclk,
            .mosi = mosi,
            .miso = miso,
    };
}

const struct SPIGPIOClass SPIGPIO = {.new = &new};
